package com.ubs.web.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;
import com.ubs.web.client.panel.login.LoginPanel;
import com.ubs.web.client.security.SecurityContext;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class WelcomeEntryPoint implements EntryPoint {

	/**
	 * This is the entry point method.
	 */
	public void onModuleLoad() {
		
		LoginPanel loginPanel = LoginPanel.getSingleton();
		SecurityContext.addSecurityListener(loginPanel);
		// Add the loginPanel to the RootPanel
		// Use RootPanel.get() to get the entire body element
		RootPanel.get("loginPanelContainer").add(loginPanel);
		
	}
}
